package com.af.monitorModule.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lyz_4dou
 * @since 2021-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
    public class Fragment implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 主键ID
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 监控ID
     */
      private Integer monitorId;
      /**
     * 公司ID
     */
      private Integer companyId;

      /**
     * 数据库名称
     */
      private String dbName;

      /**
     * 收集到的索引碎片信息
     */
      private String fragmentInfo;

      /**
     * 录入时间
     */
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private LocalDateTime inputDate;


}
